<script type="text/javascript" src="${base}/scripts/kcgl/rkshstock.js"></script>
<div id="rksh_dhd_tabs" class="easyui-tabs" fit="true">

    <div title="采购单" style="height: 100%;overflow-y: auto">

        <table style="width:98%;margin: 5px;" class="tb tab-t t-bor">
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <tr>
                <th style="">采购单号：</th>
                <td colspan="3" style="">${(rksh.cgdh)!}
                </td>

                <th style="">采购时间：</th>
                <td style="">${(rksh.cgsj?date)!}</td>
            </tr>
            <tr>
                <th style="">采购合同：</th>
                <td style="">${(rksh.cght.xshtbm)!}</td>

                <th style="">采购类型：</th>
                <td style="">
                <#if rksh?? && rksh.cglx?? && rksh.cglx=="cgrk" >采购入库<#else>
                    <#if rksh?? && rksh.cglx?? && rksh.cglx=="zddh" >
                        直达到货<#elseif rksh?? && rksh.cglx?? && rksh.cglx=="bght">
                        保供采购<#else>统配采购</#if>
                </#if>
                </td>

                <th style="">供应商：</th>
                <td style="">${(rksh.gys.qc)!}</td>
            </tr>
        <#if (rksh.cglx)??&&rksh.cglx == "zddh">
            <tr>
                <th style="">销售合同：</th>
                <td style="">${(rksh.xsd.xsht.htbm)!}</td>

                <th style="">客户名称：</th>
                <td style="">${(rksh.xsd.kh.qc)!}</td>

                <th style="">工程名称：</th>
                <td style="">${(rksh.xsd.gc.mc)!}</td>
            </tr>
        </#if>
            <tr>
                <th style="">采购公司：</th>
                <td style="">${(rksh.cggs.qc)!}</td>

                <th style="">采购部门：</th>
                <td style="">${(rksh.cgbm.qc)!}</td>

                <th style="">采购人：</th>
                <td style="">${(rksh.cgr.xm)!}</td>
            </tr>
            <tr>
                <th style="">发货公司：</th>
                <td style="">${(rksh.fhgs.qc)!}</td>
                <th style="">发货日期：</th>
                <td style="">${(rksh.fhrq?date)!}</td>
                <th style="">到货日期：</th>
                <td style="">${(rksh.jhdhrq?date)!}</td>
            </tr>
            <tr>

                <th style="">到货仓库：</th>
                <td style="">${(rksh.dzck.mc)!}</td>
                <th style="">承运单位：</th>
                <td style="">${(rksh.ysdw.qc)!}</td>
                <th style="">承运号：</th>
                <td style="">${(rksh.cyh)!}</td>
            </tr>
            <tr>
            <#--<th>车船号：</th>-->
            <#--<td>-->
            <#--&lt;#&ndash;<input id="cgd_cch_id" name="cgd.cch.id" type="text" value="${(xsd.kh.id)!}"&ndash;&gt;-->
            <#--&lt;#&ndash;class="input-text"/>&ndash;&gt;-->
            <#--</td>-->
                <th style="">联系电话：</th>
                <td colspan="3" style="">${(rksh.lxrdh)!}</td>
                <th style="">税率(%)：</th>
                <td style="">${(rksh.sl)!}</td>
            </tr>
            <tr>
                <th style="">备注：</th>
                <td colspan="5" style="">${(rksh.bz)!}</td>
            </tr>
        </table>
    </div>
    <div title="入库明细">
        <form id="rksh_cgd_Form" method="post">
            <input name="rksh.id" type="hidden" value="${(rksh.id)!''}"/>

            <div class="PTools" id="rksh_tools">
                <ul class="niu">
                    <li><a href="javascript:void(0);" id="btn_rksh_add_dhd" plain="true">新增到货单</a></li>
                </ul>
            </div>
            <table id="rksh_rk_mx">
            </table>
            <div style="height:25px;width:100%;"><a href="#" class="easyui-linkbutton" id="btn_rkshMx_allSave_dhd"
                                                    data-options="iconCls:'icon-save2'"
                                                    style="float:right;margin-right:10px;">全部入库</a></div>
            <h4 style="margin-top:8px;height:25px;width:100%;line-height: 25px;font-size:16px;text-indent: 20px;text-align: center;color: #117dc8;letter-spacing:10px;background-color: #d8eaff;border-top: 1px #8ecef7 solid; ">
                到货单</h4>

            <div class="PTools" id="dhd_tools" style="display: block;">
                <ul class="niu">
                    <li><a href="javascript:void(0);" id="btn_rksh_del_dhd" class="del" plain="true"
                           style="display: none;">删除</a></li>
                    <li><a href="javascript:void(0);" id="btn_rksh_update_dhd" class="rep" plain="true"
                           style="display: none;">修改</a></li>
                    <li><a href="javascript:void(0);" id="btn_rksh_validate_dhd" class="start" plain="true"
                           style="display: none;">验收</a></li>
                </ul>
            </div>
            <table id="rksh_dhd_mx">
            </table>
        </form>
    </div>
</div>